projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a9a307
)
Fix a thinko in computing damage for segments
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 19 Dec 2009 00:17:04 +0000
(19:17 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 19 Dec 2009 00:17:04 +0000
(19:17 -0500)
The code was not taking the endpoint of the first segment into account.
This was reported in bug 604747.
gdk/gdkoffscreenwindow.c
patch
|
blob
|
history
diff --git
a/gdk/gdkoffscreenwindow.c
b/gdk/gdkoffscreenwindow.c
index dcba0a16e45946f9cd13507d2b693be1ad41a366..23d92affd2193e5c64986bb58a1db04f1128be54 100644
(file)
--- a/
gdk/gdkoffscreenwindow.c
+++ b/
gdk/gdkoffscreenwindow.c
@@
-514,7
+514,7
@@
gdk_offscreen_window_draw_segments (GdkDrawable *drawable,
min_x = max_x = segs[0].x1;
min_y = max_y = segs[0].y1;
- for (i =
1
; i < nsegs; i++)
+ for (i =
0
; i < nsegs; i++)
{
min_x = MIN (min_x, segs[i].x1);
max_x = MAX (max_x, segs[i].x1);